package com.ruoyi.record.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单词学习任务对象 word_study_step_student
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class WordStudyStepStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String name;

    /** 总步数 */
    @Excel(name = "总步数")
    private Integer total;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 时间范围 */
    @Excel(name = "时间范围")
    private String scope;

    /** 激活的步骤 */
    @Excel(name = "激活的步骤")
    private Integer active;

    /** 校区 */
    @Excel(name = "校区")
    private String campus;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer studentId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String studentName;

    /** 主ID */
    @Excel(name = "主ID")
    private Integer main;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("total", getTotal())
            .append("time", getTime())
            .append("status", getStatus())
            .append("scope", getScope())
            .append("active", getActive())
            .append("campus", getCampus())
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("main", getMain())
            .toString();
    }
}
